package com.study.bootstudy.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author RenPu
 * @Date 2023/10/10 21:57
 * @Version 1.0
 * @Description:
 **/

@Data
@Builder
@NoArgsConstructor
public class Vechile {

    /**
     * 唯一标识（主键）
     */
    private String id;

    /**
     * 车出厂编号
     */
    private String carId;

    /**
     * 生产日期
     */
    private String carProductTime;

    /**
     * 合格证
     */
    private String certificateCode;

    public Vechile(String id, String carId, String carProductTime, String certificateCode) {
        this.id = id;
        this.carId = carId;
        this.carProductTime = carProductTime;
        this.certificateCode = certificateCode;
    }

    public void run(){
        System.out.println("Vechile  is excute !!!!");
    }
}
